- /* siodiv.cpp by K.Tsuru */
- // function ID = 404 BRADIX
- /**********************************
- SInteger class
- It provides a division operator m/n.
- ***********************************/
- #ifndef SN_H
- #include "sn.h"
- #endif
- SInteger operator/(const SInteger& m, const SInteger& n){
- Ldiv_t r; //The type is SLong.
- SInteger q;
- IIDiv(m, n, r, 0);
- q = r.quot;
- return q; //"return r.quot;" is an error
- //cannot convert SLong --> SInteger
- }
siodiv.cpp : last modifiled at 2015/12/14 16:16:20(457 bytes)
created at 2016/04/25 14:53:17
The creation time of this html file is 2017/10/25 11:09:45 (Wed Oct 25 11:09:45 2017).